StringScanner.Delete Function

Syntax

Delete as v(delete as n)

Arguments

delete

The number of characters to delete.

Description

Delete bytes from string at location.

Discussion

The <StringScanner>.Delete() method deletes bytes from string starting at the current offset.

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is a text
plus more text
%text%
? txt
= This is a text
plus more text
scanner = stringscanner.create(txt)
scanner.delete(5)
? scanner.text
= is a text
plus more text

See Also